package com.youxin.logcenter.service;

import java.net.UnknownHostException;

import javax.servlet.http.HttpServletRequest;

import com.youxin.busfoundation.bean.BaseLogModel;
import com.youxin.busfoundation.bean.ResponseObject;
import com.youxin.busfoundation.enums.SystemType;
import com.youxin.logcenter.bean.RequestQueryLog;
/**
 * 日志服务接口
 * @author yingde.cao
 *
 */
public interface LogApiService {

	/**
	 * 保存日志
	 * @param request HttpServletRequest请求
	 * @param logBean 日志数据
	 * @param systemType 系统类型 PC=2,OA=2,CP=3
	 * @return ResponseObject
	 * @throws UnknownHostException
	 */
	public ResponseObject saveLog(HttpServletRequest request,BaseLogModel logBean,SystemType systemType) throws UnknownHostException;
	/**
	 * 查询日志
	 * @param logBean  RequestQueryLog
	 * @return ResponseObject
	 */
	public ResponseObject queryLog(RequestQueryLog logBean);
}
